	<div style="padding: 3px 14px;">
		<form class="frm1" id="form" action="<?php echo base_url($lang_url).(empty($lang_url) ? '' : '/'); ?>panel/users/<?php echo $method ?>" method="GET">
			<input type="text" class="size90" name="q" value="<?php echo (isset($q)) ? $q : ''; ?>" placeholder="Nombre de la Pelicula (Ej. Real Steel 2011)" maxlength="100"/>
		</form>
	</div>	

	<?php  if(isset($list)){
		$req_uri = preg_replace(array('/\&pag=([0-9]+|)/', '/\?pag=([0-9]+|)/'), array('',''), 
					$_SERVER['REQUEST_URI']);
		$vsegment = explode('?', $req_uri);
		$this->pagination->initialize(array(
			'base_url' 			=> Sys::$url_base.$this->uri->uri_string().'/',
			'total_rows'		=> $list['total_rows'],
			'per_page'			=> $list['items_per_page'],
			'cur_page'			=> $list['result_page']*$list['items_per_page'],
			'page_query_string'	=> TRUE,
			'query_string_segment'=> (isset($vsegment[1])? '?'.$vsegment[1].'&pag': '?pag'),
			'num_links'			=> 1,
			'anchor_class'		=> 'pags corner-all'
		));
		
		$pagination = $this->pagination->create_links();
		// echo '<div class="pagination w100">'.$pagination.'</div>';

		?>
			<ul id="tree">
				<?php
					// Si selecciono la opcion "Buscar Pelicula" del menu entraria a este IF
					if ($method === 'search')
					{
						foreach ($list['result_search'] as $itm) {?>
							<li class="no-padding no-margin">
								<span class="title-serie"><?php echo $itm['titulo'];?>
									<a href="<?php echo base_url($lang_url).(empty($lang_url) ? '' : '/');?>panel/users/<?php echo $method2.'/'.$itm['id_tabla']; ?>" class="button up float-r" title="<?php echo $title ?>">&nbsp;</a>
								</span>
							</li>
							<!-- <tr>
								<td class="td_title"><?php //echo $itm['titulo']; ?></td>  	                         
								<td>
									<a href="<?php //echo base_url($lang_url).(//empty($lang_url) ? '' : '/');?>panel/users/<?php //echo $method2.'/'.$itm['id_tabla']; ?>" class="button left up dblock" title="<?php //echo $title ?>">&nbsp;</a>
									<?php 
										/* <a href="<?php echo base_url($lang_url).(empty($lang_url) ? '' : '/');?>panel/films/del/<?php echo $itm['id_tabla']; ?>" class="button right down dblock" title="Eliminar" 
										 onclick="if(confirm('&iquest;Est&aacute; seguro de eliminar la Pelicula?') == false){ return false; }">&nbsp;</a>*/?>
								</td>                
							</tr>	 -->
				<?php }
					// Pero si seleccion la opcion "Administrar Mis Peliculas" entraria a este otro IF
					}
					else
					{ 

						// echo '<pre>';
						// var_dump($list['result_search']);
						// echo '</pre>';
						?>
						<!-- PELICULAS -->
						<?php foreach($list['result_search'] as $key => $pelicula){ ?>
							<li class="no-padding no-margin">
								<span class="title-serie"><?php echo $pelicula['titulo'];?></span>

								<!-- TEMPORADAS -->
								<?php foreach($pelicula['links'] as $links){?>
									<ul class="no-margin no-padding">
										<li class="no-margin pdd-season">
											<span class="title-season"><?php echo $links['servidor']; ?>
												<a href="<?php echo base_url($lang_url).(empty($lang_url) ? '' : '/');?>panel/users/<?php echo $method2.'/'.$pelicula['id_pelicula'].'/'.$links['id_phash'];?>" class="button up float-r" title="Editar link">&nbsp;</a>
											</span>
										</li>
									</ul>
									
								<?php } ?>
							</li>
						<?php } ?>
						
				<?php }?>
			</ul>
		<?php echo '<div class="pagination w100">'.$pagination.'</div>';}?>